import { AppRouteRecordRaw } from '../types';
import { DEFAULT_LAYOUT } from '../base';

const CODEEDITOR: AppRouteRecordRaw = {
  path: '/codeEditor',
  name: 'codeEditor',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.codeEditor',
    requiresAuth: true,
    icon: 'icon-code',
    order: 2,
  },
  children:[
    {
      path: 'example',
      // 必须全局唯一
      name: 'codeExample',
      component: () => import('@/views/example/codeEditor.vue'),
      meta: {
        locale: 'menu.example',
        requiresAuth: true,
        icon: 'icon-code',
      },
    }
  ]
};
export default CODEEDITOR;
